package book;

public class Book {
    private String name;
    private int  price;
    private String author;
    public String type;
    public  String borrow;
    public Book(String name,int price,String author,String type,String borrow){
        this.name=name;
        this.price=price;
        this.author=author;
        this.type=type;
        this.borrow=borrow;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getBorrow() {
        return borrow;
    }

    public void setBorrow(String borrow) {
        this.borrow = borrow;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", author='" + author + '\'' +
                ", type='" + type + '\'' +",borrow="+borrow+'\''+
                '}';
    }
}
